package com.dgz.friend.test;

import com.dgz.common.core.controller.BaseController;
import com.dgz.common.core.domain.R;
import com.dgz.common.message.config.AliSmsConfig;
import com.dgz.common.message.service.AliSmsService;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: DongGuoZhen
 * @Date: 2025/04/28/13:57
 * @Description:
 */
@RestController
@RequestMapping("/test")
public class testController extends BaseController {

    @Autowired
    private AliSmsService aliSmsService;

    @GetMapping("/sms")
    public R<Void> sms(String phone, String code) {
        return toR(aliSmsService.sendMobileCode(phone, code));
    }



}
